{config_load file=test.conf section="setup"}
{include file="header.html" title_page=Category name=Money}

<div>

<div class="category_list">
  <div class="titles">支出</div>
  <hr></hr>

  {section name=list loop=$lists_pay}

    <div class="items_title">{$lists_pay[list].0.cname}：</div>
    {section name=category loop=$lists_pay[list]}
      <div class="items"><a href="money_add.php?type=0&category={$lists_pay[list][category].id}" target="_blank">{$lists_pay[list][category].caption}</a></div>
    {sectionelse}
      <strong>没有子分类</strong>
    {/section}
	<div class="clears"></div>

  {sectionelse}
    <strong>没有分类</strong>
  {/section}

</div>

<dl class="category_list">
  <div class="titles">收入</div>
  <hr></hr>

  {section name=list loop=$lists_income}

    <div class="items_title">{$lists_income[list].0.cname}：</div>
    {section name=category loop=$lists_income[list]}
      <div class="items"><a href="money_add.php?type=1&category={$lists_income[list][category].id}" target="_blank">{$lists_income[list][category].caption}</a></div>
    {sectionelse}
      <strong>没有子分类</strong>
    {/section}
	<div class="clears"></div>

  {sectionelse}
    <strong>没有分类</strong>
  {/section}

</dl>
</div>

{include file="footer.html"}